The data verse includes all data and code needed to replicate the figures and tables in “All (Mayoral) Politics is Local?” by Sanmay Das, Betsy Sinclair, Steven Webster, and Hao Yan. Please send all correspondence to Steven Webster (swwebste@iu.edu).

The tables and figures in the paper are replicated by running the "master.R" script, which calls upon the following R scripts: (1) data_cleaning_and_merging.R, (2) regressions.R, and (3) figure1.R. These R scripts, in turn, require various comma-separated values (csv) datasets obtained in the "data" subfolder.

To produce the CS scores and the topic distributions, you must rely on the Python code in the "mayoral" folder. The "mayoral" folder has a series of README files that provide more detailed, step-by-step instructions and guidance.